//
//  LZLoginTextFieldView.h
//  laziz_Consumer
//
//  Created by ZhaoDongBo on 2016/10/25.
//  Copyright © 2016年 XBN. All rights reserved.
//

#import <UIKit/UIKit.h>

@class LZTextField;

typedef NS_ENUM(NSUInteger, LZLOGIN_TF_TYPE_PAGE) {
    LZLOGIN_TF_TYPE_PAGE_FASTLOGIN = 1000,      // 快速登录
    LZLOGIN_TF_TYPE_PAGE_PHONELOGIN,            // 手机号登录
    LZLOGIN_TF_TYPE_PAGE_MAILLOGIN,             // 邮箱登录
    LZLOGIN_TF_TYPE_PAGE_REGISTER_PHONE,        // 注册----手机号注册
    LZLOGIN_TF_TYPE_PAGE_REGISTER_MAIL,         // 注册----邮箱注册
    LZLOGIN_TF_TYPE_PAGE_PASSWORD,              // 重置密码
    LZLOGIN_TF_TYPE_PAGE_FINDPASSWORD_PHONE,    // 找回密码----手机号找回
    LZLOGIN_TF_TYPE_PAGE_FINDPASSWORD_MAIL,     // 找回密码----邮箱找回
};

typedef NS_ENUM(NSUInteger, LZLOGIN_TF_BUTTON_TAG) {
    LZLOGIN_TF_BUTTON_TAG_SHOWPASSWORD = 10000,
    LZLOGIN_TF_BUTTON_TAG_VERIFICCODE,
    LZLOGIN_TF_BUTTON_TAG_AGREEMENT,
};

@interface LZLoginTextFieldView : UIView

@property (nonatomic, assign) LZLOGIN_TF_TYPE_PAGE page;

@property (nonatomic, strong) UILabel * areaCodeTextField;
@property (nonatomic, strong) UIImageView * markImageView;
@property (nonatomic, strong) UITextField * mobileNumTextField;
@property (nonatomic, strong) UIButton * verificCodeButton;
@property (nonatomic, strong) UILabel * countdownLabel;
@property (nonatomic, strong) UIView * line1;

@property (nonatomic, strong) UITextField * verificCodeTextField;
@property (nonatomic, strong) UIView * line2;

@property (nonatomic, strong) LZTextField * passwordTextField;
@property (nonatomic, strong) UIButton * showPWbutton;
@property (nonatomic, strong) UIView * line3;

@property (nonatomic, strong) UIButton * agreementButton;
@property (nonatomic, strong) UIButton * selectButton;
@property (nonatomic, strong) UILabel * agreementLabel;

@property (nonatomic ,copy) void (^clickAgreementButtonBlock)(BOOL isAgree);

@property (nonatomic ,copy) void (^clickAreaCodeTextFieldBlock)(UILabel *label);

@property (nonatomic, copy) void(^buttonAction_TF_Block)(LZLOGIN_TF_BUTTON_TAG);

- (instancetype)initWithPage:(LZLOGIN_TF_TYPE_PAGE)page;


/**
 显示password recovery 气泡提醒
 */
- (void)showPasswordRecoveryPopView;


/**
 隐藏password recovery 气泡提醒
 */
- (void)hiddenPasswordRecoveryPopView;

@end
